<div class="">
  <ul class="uk-list top-user-list">
    <li class="uk-display-inline-block" *ngIf="!user">
      <a routerLink="/login">
        你好，请登录
      </a>
    </li>
    <li class="uk-display-inline-block" *ngIf="!user">
      <a
        routerLink="/register"
        class="register"
      >
        注册
      </a>
    </li>
    <li class="uk-display-inline-block" *ngIf="user">
      <a
        class="register"
      >
       你好，{{user.data.userName}}
      </a>
    </li>
    <li class="uk-display-inline-block" *ngIf="user">
      <a class="register" (click)="onSignOut()">
        退出
      </a>
    </li>
    <li class="uk-display-inline-block" *ngFor="let item1 of topbar.menu">
      <a href="" class="border-left">{{item1.name}}</a>
    </li>
  </ul>
</div>
